<template>
  <div class="app-container">
    <el-card >
      <h1 style="text-align: center"  >{{noticeDetail.noticeTitle}}</h1>
      <div style="text-align: center">
       <span style="color:#909399" >{{noticeDetail.createTime}} {{noticeDetail.userName}}</span>
      </div>
      <el-divider></el-divider>
      <div v-html="noticeDetail.content" >
      </div>
       <el-divider></el-divider>
    </el-card>
  </div>
</template>
<script>
import { getNotice } from '@/api/notice'
export default {
  data() {
    return {
      noticeDetail:{},
      param:{
        noticeId:''
      },
       
    }
  },
  //页面打开时执行的方法
  created() {
    this.param.noticeId = this.$route.query.noticeId;
    this.getNotice();
  },
   methods: {
     async getNotice(){
          let res = await getNotice(this.param);
          this.noticeDetail =res.bean;
      },
      reportResult() {
        reportResult(this.score).then(()=>{
            this.$message({
              type: 'success',
              message: '提交审核结果成功!'
            })
            }
          ).catch(err=>{
            this.$message({
              type: 'success',
              message: '提交审核结果失败!'
            })
            })
      }
   }
}
</script>
